package portfelo.objects;

import java.sql.Date;

public class Artist 
{
//	ACCOUNT_ID INT AUTO_INCREMENT NOT NULL PRIMARY KEY, 
//	ACCOUNT_NAME VARCHAR(50) NOT NULL, --account name should be unique?
//	ACCOUNT_PASSWORD VARCHAR(12) NOT NULL, 
//	STATUS INT, --STATUS OF ACCOUNT? (ACTIVE, INACTIVE, BANNED, PROFESSIONAL, SEMI-PRO, MODERATOR, ADMIN, ETC) 
//	--FOR US WE WILL JUST USE TWO (ACTIVE, INACTIVE) 
//	FIRST_NAME VARCHAR(30), 
//	LAST_NAME VARCHAR(30), 
//	LOCATION VARCHAR(80), --GENERAL LOCATION, LOCATION OF ARTIST (CITY, STATE? OR JUST CITY SINCE IT'S A SINGLE STRING)
//	AVATAR VARCHAR(120),  --URL LINK TO ACCOUNT IMAGE AVATAR (PROFILE PIC)
//	DESCRIPTION VARCHAR(500),
//	MEMBER_SINCE DATE, --DATE ACCOUNT CREATED
//	HITS INT --NUMBER OF TIMES SOMEONE LOOKED AT ACCOUNT INFO? OR NUMBER OF HITS ON HIS IMAGES?
	private int account_id;
	private String account_name; 
	private int status;
	private String first_name;
	private String last_name;
	private String location;
	private String avatar;
	private String description;
	private Date memberSince;
	private int hits;
	public Artist(int id, String name, int status, String first, String last, String loc, String avatar, 
			String descrip, Date d, int hits)
	{
		account_id = id;
		account_name = name;
		this.status = status;
		first_name = first;
		last_name = last;
		location = loc;
		this.avatar = avatar;
		description = descrip;
		memberSince = d;
		this.hits = hits;
	}

	public int getAccountId()
	{return account_id;}
	public String getAccountName()
	{return account_name;}
	public int getStatus()
	{return status;}
	public String getFirstName()
	{return first_name;}
	public String getLastName()
	{return last_name;}
	public String getLocation()
	{return location;}
	public String getAvatar()
	{return avatar;}
	public String getDescription()
	{return description;}
	public Date getMemberSince()
	{return memberSince;}
	public int getHits()
	{return hits;}
	
	public boolean equals(Object o)
	{
		if(!(Artist.class.isInstance(o)))
			return false;
		
		Artist t = (Artist) o;
		
		//account_id should be unique so same id is same accounts
		return account_id == t.getAccountId();
		
//		return (account_id == t.getAccountId() && 
//				account_name.equals(t.getAccountName()) && 
//				status == t.getStatus() && 
//				first_name.equals(t.getFirstName()) && 
//				last_name.equals(t.getLastName()) && location.equals(t.getLocation()) && 
//				avatar.equals(t.getAvatar()) &&
//				description.equals(t.getDescription()) &&
//				memberSince.equals(t.getMemberSince()) &&
//				hits == t.getHits());
//		
		
		
	}
}
